package dongshi.daddy.main;

import dongshi.daddy.service.configuration.DubboConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ProviderAnnotationMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DubboConfiguration.class);
        context.start();
        new Thread(() -> {
            while (true) {
                try {
                    Thread.sleep(900000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }).start();
    }
}

